<script setup lang="ts">
import { ref } from 'vue';

const search = ref('');
const onClickButton = () => {
    
}
</script>

<template>
    <div>
        <van-search v-model="search" shape="round" :clearable="true" :show-action="true"
            placeholder="请输入搜索关键词"
        >
            <template #action>
                <div @click="onClickButton">搜索</div>
            </template>
        </van-search>
    </div>
</template>